package com.lsx.service.impl;

import com.lsx.dao.DetailedDao;
import com.lsx.pojo.Detailed;
import com.lsx.service.DetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc on 2017/11/14.
 */
@Service("DetailedService")
public class DetailedServiceImpl implements DetailedService {

    @Autowired
    private DetailedDao dtaldao;

    public int updateStaue(Detailed detal) {
        return dtaldao.updateStaue(detal);
    }

    public int addAll(Detailed dad) {
        return dtaldao.addAll(dad);
    }

    public int delete(int id) {
        return dtaldao.delete(id);
    }

    public List<Detailed> getall(int userId,int cid) {
        return dtaldao.getall(userId,cid);
    }

    public List<Detailed> getBySta(int sta) {
        return dtaldao.getBySta(sta);
    }

    public Detailed getById(int id) {
        return dtaldao.getById(id);
    }
}
